#include "sent.h"
#include "ui_sent.h"

Sent::Sent(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Sent)
{
    ui->setupUi(this);
}

Sent::~Sent()
{
    delete ui;
}

void Sent::on_pushButton_2_clicked()
{
     receiver=ui->lineEdit->text();
     content=ui->textEdit_3->toPlainText();

     QMessageBox::about(NULL,"Send","The news is sent<font color='red'>successfully</font>");

}

void Sent::on_pushButton_clicked()
{
    sent_exit.show();
    this->hide();
}
